﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace ERP.ERPModels.WorkforceManage
{
    /// <summary>
    /// 班次
    /// </summary>
    public class Classes : Entity<int>
    {
        /// <summary>
        /// 班次序号
        /// </summary>
        public int SerialNumber { get; set; }

        /// <summary>
        /// 班次名称
        /// </summary>
        public string ClassesName { get; set; }

        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime StartTime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        /// <summary>
        /// 关联的排班计划ID
        /// </summary>
        public int? SchedulingPlanId { get; set; }

        public Classes()
        {
            // 设置默认值，避免空值异常
            ClassesName = string.Empty;
            var now = DateTime.Now;
            StartTime = now;
            EndTime = now;
        }
    }
}
